package com.smartalarmclock.Model;

import java.util.Set;

import com.smartalarmclock.Model.Exceptions.DataEntityDoesNotExistException;

import android.content.Context;

public interface IReferencingDataEntityFactory extends IDataEntityFactory {

	/**
	 * @param context the context of the request
	 * @param referencedDataEntity the referencing entity
	 * @return a set of referencing entities for the given referenced entity
	 * @throws DataEntityDoesNotExistException if the referencing entities do not exist. If this is thrown
	 * something went wrong with the handling of the references.
	 */
	public Set<IReferencingDataEntity> GetReferencingEntities(
		Context context,
		IReferencedDataEntity referencedDataEntity) throws DataEntityDoesNotExistException;
}
